package com.its.common.net.server;

import io.netty.buffer.ByteBuf;
import io.netty.channel.Channel;

/**
 * @Author xiaxp
 * @Date 9/1/22 16:50
 * @Description
 */
public interface Server<T> {

    void start();

    void stop();

    void kickClient(String ipAddr, int port);

    void sendToAll(ByteBuf content);

    void sendToAll(byte[] content);

    void send(T ch, ByteBuf content);

    void send(T ch, byte[] content);
}
